﻿using OSharp.Entity;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace HFast.Contrast.Contrast.Entities
{
    /// <summary>
    /// 对比产品表属性
    /// </summary>
    [Description("对比产品表属性")]
    public class ContrastProductAttribute : EntityBase<int>
    {
        /// <summary>
        /// 产品编号
        /// </summary>
        [Required, DisplayName("主题编号")]
        public int SubjectID { get; set; }

        /// <summary>
        /// 属性编号
        /// </summary>
        [Required, DisplayName("属性编号")]
        public int AttributeID { get; set; }

        /// <summary>
        /// 产品编号
        /// </summary>
        [Required, DisplayName("产品编号")]
        public int ProductID { get; set; }

        /// <summary>
        /// 简述
        /// </summary>
        [StringLength(300), DisplayName("简述")]
        public string Resume { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        [DisplayName("内容")]
        public string Content { get; set; }
    }
}
